<template>
  <van-empty :description="description">
    <van-button round type="danger" class="bottom-button" to="/" :replace="true">返回首页</van-button>
  </van-empty>
</template>

<script setup>
import { useRoute } from 'vue-router'
import { reactive, toRefs, ref } from 'vue'

const route = useRoute()
const description = ref('404 Not Found')
if(!!route.query.description) {
  description.value = route.query.description
}
</script>

<style scoped>

</style>
